home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-11 | 2.3 KB | 89 lines |
- #!smake
- #
- # Copyright 1994, Silicon Graphics, Inc.
- # All Rights Reserved.
- #
- # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- # the contents of this file may not be disclosed to third parties, copied or
- # duplicated in any form, in whole or in part, without the prior written
- # permission of Silicon Graphics, Inc.
- #
- # RESTRICTED RIGHTS LEGEND:
- # Use, duplication or disclosure by the Government is subject to restrictions
- # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- # rights reserved under the Copyright Laws of the United States.
- #
- #
- # Makefile for OpenGL Programming 2 additional demos.
- #
- # "$Revision: 1.2 $"
-
- include $(ROOT)/usr/include/make/commondefs
-
- .SUFFIXES:
- .SUFFIXES: .c .o .so .h
- #
- # Targets with made via a common rule
- #
- EASYTARGETS= abgr blendCollage earth panZoom subtexture oversphere \
- multiwin RGBAandCI
-
- #
- # Targets with explicit rules
- #
- TARGETS=oglextensions pixmap glwstereo surfgrid lens
-
- ALLTARGETS=$(EASYTARGETS) $(TARGETS)
-
- OPENGL2 ?= ..
-
- LLDOPTS = -L${OPENGL2}/lib
- LLDLIBS = -loglprog -limage -lglut -lGLU -lGL -lXmu -lX11 -lm
-
- LCINCS = -I. -I${OPENGL2}/include
- LCOPTS=-float -prototypes -xansi -fullwarn $(OPTIMIZER)\
- $(LCINCS) -I/usr/include -MDupdate Makedepend
- XLIBS= -lX11
- XEXTLIBS= -lXext -lX11
- XMLIBS= -lGLw -lXm -lXt
- GLLIBS= -lGLU -lGL
- LDFLAGS= $(LLDOPTS) -L/lib -L/usr/lib
- LOCALLIBS= util.o
- CCF=$(CC) $(LCOPTS)
-
- #if defined(DEBUG)
- OPTIMIZER = -g
- #else
- OPTIMIZER = -O
- #endif
-
- # don't bother generating intermediate files
- LMKDEPFLAGS= $(NULLSUFFIX_MKDEPFLAG)
-
- all default: $(ALLTARGETS)
-
- $(EASYTARGETS): $$@.o $(LOCALLIBS)
- $(CCF) -o $@ $@.o $(LOCALLIBS) $(LDFLAGS) $(LLDLIBS)
-
- oglextensions pixmap surfgrid: $$@.o $(LOCALLIBS)
- $(CCF) -o $@ $@.o $(LOCALLIBS) $(LDFLAGS) $(XMLIBS) $(GLLIBS) $(XLIBS) -lm
-
- lens: $$@.o $(LOCALLIBS) xwindow.o
- $(CCF) -o $@ $@.o $(LOCALLIBS) xwindow.o $(LDFLAGS) $(GLLIBS) $(XLIBS) -limage -lm
-
- glwstereo: $$@.o $(LOCALLIBS)
- $(CCF) -o $@ $@.o $(LOCALLIBS) $(LDFLAGS) $(XMLIBS) $(GLLIBS) $(XEXTLIBS) -lm
-
- .c.o:
- $(CCF) -c $<
-
- clean:
- /bin/rm -f *.o a.out core
-
- clobber: clean
- /bin/rm -f $(ALLTARGETS) Makedepend
-
- sinclude Makedepend
-